import request from '@/utils/request'

// 查询账号信息列表
export function listInterfaceApply(query) {
  return request({
    url: '/interfaceApply/list',
    method: 'get',
    params: query
  })
}

export function listAllInterfaceApply(query) {
  return request({
    url: '/interfaceApply/list/all',
    method: 'get',
    params: query
  })
}

// 查询账号信息详细
export function getInterfaceApply(id) {
  return request({
    url: '/interfaceApply/' + id,
    method: 'get'
  })
}

// 新增账号信息
export function addInterfaceApply(data) {
  return request({
    url: '/interfaceApply',
    method: 'post',
    data: data
  })
}

// 修改账号信息
export function updateInterfaceApply(data) {
  return request({
    url: '/interfaceApply',
    method: 'put',
    data: data
  })
}

// 删除账号信息
export function delInterfaceApply(id) {
  return request({
    url: '/interfaceApply/' + id,
    method: 'delete'
  })
}
